﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace verk2013_project_group12.Models
{
    public class AppRepository : IAppRepository
    {
        private AppDataContext _db = new AppDataContext();
        public IEnumerable<NewsItem> AllNews
        {
            get 
            {
                return _db.NewsItems;
            }
            set
            {

            }
        }

        public IEnumerable<UserProfile> AllUsers
        {
            get
            {
                return _db.UserProfiles;
            }
            set
            {

            }
        }

        public IEnumerable<Game> AllGames
        {
            get
            {
                return _db.Games;
            }
            set
            {

            }
        }

        public IEnumerable<GameInstance> AllGameInstances
        {
            get
            {
                return _db.GameInstances;
            }
            set
            {

            }
        }
    }
}